<div id="cpanel_site" class="form">

<%= simple_form_for([:cpanel,@site], :wrapper => :inline ) do |f| %>
  <%= render "/shared/error_messages", :target => @site  %>
  <fieldset>
    <legend><%= t("common.edit") %></legend>
      <%= f.input :name %>
      <%= f.input :url, :input_html => { :class => "xxlarge" }, :placeholder => "http://"  %>
      <%= f.input :favicon, :input_html => { :class => "xxlarge" }, :placeholder => "http://" %>
      <%= f.input :desc, :as => :text, :input_html => { :class => "xxlarge", :rows => "3" } %>
      <%= f.input :site_node_id, :collection => SiteNode.all.collect { |t| [t.name, t.id] }, :include_blank => false %>
      <div class="actions">
      <%= f.submit t("common.save"), :class => "btn primary", :disable_with => t("common.saving") %>
      or
      <%= link_to t("common.cancel"), cpanel_sites_path %>
    </div>
  </fieldset>
<% end %>
</div>
